﻿using MRSite.AutoMapper.Attributes;
using MRSite.Entity;
using ProtoBuf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MRSite.EntityDto
{
    [AutoMapBoth(typeof(Message))]
    [ProtoContract]
    public class MessageDto
    {
        [ProtoMember(1)]
        public int id { get; set; }

        [ProtoMember(2)]
        public int type { get; set; }

        [ProtoMember(3)]
        public int post_user_id { get; set; }

        [ProtoMember(4)]
        public String post_user_name { get; set; }

        [ProtoMember(5)]
        public int accept_user_id { get; set; }


        [ProtoMember(6)]
        public String accept_user_name { get; set; }


        [ProtoMember(7)]
        public int is_read { get; set; }


        [ProtoMember(8)]
        public String title { get; set; }


        [ProtoMember(9)]
        public String content { get; set; }


        [ProtoMember(10)]
        public DateTime post_time { get; set; }


        [ProtoMember(11)]
        public DateTime? read_time { get; set; }
    }
}
